<script type="text/javascript">
<!--
	var country_popups = {};	
//-->
</script>
	<div id="header_parent_div">
		<div id="sitemap_d">
			<a href="mailto:info@aurora-investment.ru"><img src="<?=HTTP_HOST?>/images/aurora/send_mail.png" id="sendmail" alt=""/></a>
			<a href="<?=HTTP_HOST ?>/sitemap"><img src="<?=HTTP_HOST?>/images/aurora/sitemap.png" id="sitemap" alt=""/></a>
		</div>
		<div id="cons_download_d" style="visibility: hidden;">
			<a href="javascript:;"><img src="<?=HTTP_HOST?>/images/aurora/online_consult.png" alt="" id="online_consult"/></a>
		</div>	
		<div id="logo"><a href="<?=HTTP_HOST?>/"><img src="<?=HTTP_HOST?>/images/aurora/logo.png" id="logo_img" alt="Аврора-инвестмент"/></a></div>	
		<!-- flags -->
		<div id="flags_workspace">
			<?php foreach ($this->CountryList as $v) { ?>
			<a href="<?=HTTP_HOST.'/'.$v['alias']?>" title="<?=$v['Name']?>" style="top: <?=(int) $v['indexY']?>px; left: <?=(int) $v['indexX']?>px;"><img rel="<?=$v['ID']?>" src="<?=HTTP_HOST.'/'.$v['smallFlag']?>" alt="<?=$v['Name']?>" /></a>
			<script type="text/javascript">
				<?php
					$links = array();
					if ($v['count'][OBJECT_SALE] > 0) {
						$links[] = '<a href="'.HTTP_HOST.'/'.$v['alias'].'" onclick="makeSearch({country:'.$v['ID'].', sale_type:'.OBJECT_SALE.'}); return false;">'.$this->translate('Предложений по продаже').': <span>'.$v['count'][OBJECT_SALE].'</span></a>';
					}	 
					if ($v['count'][OBJECT_RENT] > 0) {
						$links[] = '<a href="'.HTTP_HOST.'/'.$v['alias'].'" onclick="makeSearch({country:'.$v['ID'].', sale_type:'.OBJECT_RENT.'}); return false;">'.$this->translate('Предложений по оренде').': <span>'.$v['count'][OBJECT_RENT].'</span></a>';
					}	 
					if ($v['count'][OBJECT_INVESTMENT_PROJECT] > 0) {
						$links[] = '<a href="'.HTTP_HOST.'/'.$v['alias'].'" onclick="makeSearch({country:'.$v['ID'].', sale_type:'.OBJECT_INVESTMENT_PROJECT.'}); return false;">'.$this->translate('Предложений инвестроект').': <span>'.$v['count'][OBJECT_INVESTMENT_PROJECT].'</span></a>';
					}	
					$pages = array(); 
					foreach ($v['pages'] as $v2) $pages[] = '<a href="'.HTTP_HOST.'/'.$v['alias'].'/info/'.$v2['alias'].'">'.$v2['Title'].'</a>';
				?>
			<!--
				country_popups[<?=$v['ID']?>] = '<div class="pinfo"><div class="tri"><img src="<?=HTTP_HOST?>/images/popups/tri.png" alt="" /></div><div class="gtop"><h5><?=$v['Name']?></h5><div class="gleft"><div class="gright"><div class="info"><?=str_replace("'", "\'", $v['description'])?></div><div class="links"><?=implode('', $links).implode('', $pages)?></div></div></div></div></div>';	
			//-->
			</script>
			<?php } ?>
		</div>
		<!--/flags -->	
		<div id="header_btn_div">
			<a href="<?=HTTP_HOST?>" class="main" title="<?=$this->translate('Главная')?>"></a>
			<a href="<?=$this->url(array('controller'=>'service-action', 'action' => 'index'), false, true)?>" class="service-action" title="<?=$this->translate('Услуги')?>"></a>
			<a href="<?=$this->url(array('controller'=>'special-offers', 'action' => 'index'), false, true)?>" class="actions-action"></a>
			<a href="<?=$this->url(array('controller'=>'contacts', 'action' => 'index'), false, true)?>" class="contacts-action"></a>
			<a href="<?=$this->url(array('controller'=>'articles', 'action' => 'index'), false, true)?>" class="posts-action"></a>
			<a href="http://forum.aurora-investment.ru" class="forum-action"></a>
		</div>
		<div class="preclaimer">
			<?=$this->translate('г.Москва, ул.Тимура Фрунзе, д.20, стр.1, подъезд 1, офис 3<br />Тел: +7 (499) 255-71-58,+7-903-960-79-85<br /><a href="mailto:info@aurora-investment.ru">info@aurora-investment.ru</a>')?>
		</div>
	</div>
